<template>
  <div>
    登录组件
    <button @click="getData">测试调用后端接口</button>
  </div>
</template>

<script>
  export default {
    name: "Login",
    data(){
      return {

      }
    },
    created(){
      this.getData()
    },
    methods: {
      getData(){
        const url = '/api/sys/t/blog/getBlog/'
        const params = {
          blogId: 1
        }
        // this.get(this.API_URLS.GET_BLOG, params).then(res =>{
        this.$http.get(url, {params: params}).then(res =>{
          console.log('------------()------------res值----------\n', res);
        })
      }
    }


  }
</script>

<style scoped>

</style>
